#include "../src/SDLtoolkit/Surface.h"
#include "../src/common/utils/Logger.h"
#include <iostream>

void testResize() {
	SDLEngine* engine = new SDLEngine();

		engine->start();

		Event* event = new Event();

		Surface* sirenita = new Surface(new SDL_Surface());
		sirenita->loadSurfaceImage("trunk/res/img/fondoSmall.png");
		sirenita->resize(800, 600);

		engine->drawSurface(sirenita, sirenita->getRectangle());
		engine->refreshScreen();

		bool quit = false;
		while (quit == false) {
			while (engine->pullEvent(event)) {

				engine->refreshScreen();
				if (event->getType() == Quit) {
					quit = true;
				}
			}
		}

		delete (sirenita);

		engine->stop();

		Logger::log("Tests", "Resize", "Finalizado.");
}
